#!/usr/bin/env bash
# Copyright (c) 2017 Presto Labs Pte. Ltd.
# Author: jaewon

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${SCRIPT_DIR}"
REPO_ROOT="$(git rev-parse --show-toplevel)"
cd "${REPO_ROOT}"

source "${SCRIPT_DIR}/py_bootstrap.sh"
cd python

# Run python script
echo "Args: $@"
./pyrunner coin/exchange/hitbtc_v2/ws/writer.py "$@" \
  2>> "${REPO_ROOT}/log_hitbtc_ws_writer"
